

package json_objects_send;

import java.util.List;

/**
 * @author Alejandro Casas
 * @author Rodrigo Cifuentes
 */
public class Basic_User 
{
	private String name;
	private String mail;
	private String miniPicture;
	private String country;
	private String city;
	private int friends_in_common_int;
	private List<CommonUser> friends_in_common;
	
	public Basic_User(String name, String mail, String miniPicture,
			String country, String city,List<CommonUser> fic)
	{
		this.name=name;
		this.mail=mail;
		this.miniPicture=miniPicture;
		this.country=country;
		this.city=city;
		if(fic!=null)
		{
			this.friends_in_common_int=fic.size();
		}
		else
		{
			this.friends_in_common_int=0;
		}
		
		friends_in_common=fic;
	}
	
	
	/**
	 * @return the friends_in_common
	 */
	public List<CommonUser> getFriends_in_common() {
		return friends_in_common;
	}


	/**
	 * @return the friends_in_common_int
	 */
	public int getFriends_in_common_int() {
		return friends_in_common_int;
	}


	/**
	 * @param friends_in_common_int the friends_in_common_int to set
	 */
	public void setFriends_in_common_int(int friends_in_common_int) {
		this.friends_in_common_int = friends_in_common_int;
	}


	/**
	 * @param friends_in_common the friends_in_common to set
	 */
	public void setFriends_in_common(List<CommonUser> friends_in_common) {
		this.friends_in_common = friends_in_common;
	}


	


	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMail() {
		return mail;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	public String getMiniPicture() {
		return miniPicture;
	}
	public void setMiniPicture(String miniPicture) {
		this.miniPicture = miniPicture;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	
}
